<?php
class Controller_API_Address extends Controller
{
    public function __construct ($req, $res)
    {
        parent::__construct($req, $res);
        $this->_post = $this->request->post();
    }

    public function action_set_default ($addrNid)
    {
        App_Address::setDefault(user::currentUser(), $addrNid);
        $ret = array('status' => 0);
        echo json_encode($ret);
    }

}
